<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>中国社区</title>
  <link rel="stylesheet" href="../../css/public/base.css">
  <link rel="stylesheet" href="../../css/public/nav.css">
  <link rel="stylesheet" href="../../layui/css/layui.css">
  <script src="../../js/public/jquery-3.3.1.js"></script>
</head>
<style>
  .nav > ul > li {
    position: relative;
  }

  .nav > ul > li > a {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    z-index: 1111;
  }

  #toogle_frame {
    height: 100%;
    width: 100%;
  }
</style>

<body>
<div class="nav">
  <img src="../../image/logo.png" alt="">
  <h1>中国社区</h1>
  <ul>
    <li>
       <!--<a href="../../html/index/index.html"></a>-->
      <img src="../../image/home.png" alt="">
      <span>首页</span>
    </li>
    <!-- <li>

      <span>商品</span>
    </li> -->
    <!--<li>
    <i class="layui-icon layui-icon-face-smile"></i>
    <span>订单</span>
  </li>-->
    <li>
      <img src="../../image/member.png" alt="">
      <span>会员</span>
    </li>
    <!--<li>
    <i class="layui-icon layui-icon-face-smile"></i>
    <span>客户</span>
  </li>-->
    <li>
      <img src="../../image/announcement.png" alt="">
      <span>公告</span>
    </li>
    <li>
      <img src="../../image/commondity.png" alt="">
      <span>资讯</span>
    </li>
    <li>
      <!-- <a href="../../html/Assets/statistics.html" target="self"></a> -->
      <img src="../../image/assets.png" alt="">
      <span>资产</span>
    </li>
    <li>
      <img src="../../image/management.png" alt="">
      <span>管理</span>
    </li>
    <li>
      <img src="../../image/setting.png" alt="">
      <span>设置</span>
    </li>
    <li>
      <img src="../../image/system.png" alt="">
      <span>系统</span>
    </li>
    <li>
      <img src="../../image/performance.png" alt="">
      <span>业绩</span>
    </li>
  </ul>
</div>
<div class="header">
  <span id="location"></span>
  <img src="../../image/message.png" alt="">
  <img src="../../image/logo.png" alt="" class="avatar">
  <span class="user" style="cursor: pointer">ADMIN</span>
  <div class="dropDown">
    <p class="findPwd"><img src="../../image/modifyPwd.png" alt="" style="margin-right: 12px;">找回密码</p>
    <p class="exitSystem"><img src="../../image/exit.png" alt="" style="margin-right: 8px;">退出系统</p>
  </div>
</div>
<div class='iframe_content'>
  <iframe name="naviframee" id="toogle_frame" src="../index/index.html" frameborder="0" align="left"
          scrolling="no"></iframe>
</div>
<script src="../../layui/layui.js"></script>
<script>
  $(".user").click(function(){
    $(".dropDown").toggle();
  });
  $(".exitSystem").click(function(){
    window.location.href="login.html"
  });
  layui.use('layer', function () { //独立版的layer无需执行这一句
    var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
    $('.findPwd').on('click', function () {
      $(".dropDown").css("display","none");
      layer.open({
        type: 1
        , id: 'findPwd' //防止重复弹出
        , area: ['450px !important', '300px !important']
        , title: "修改密码"
        , content: $('#findPassword')
        , btn: ['立即提交']
        , btnAlign: 'c'
        ,shade: 0
        //,shadeClose: true
        , move: false
        , resize: false
        , yes: function () {
          layer.closeAll();
        }
      });
    });
  });
  var path = window.location.href.split('html')[0] + 'html/'
  var address = localStorage.getItem('goAdresss') || "../index/index.html";
  $('#toogle_frame').attr('src', address)
  $('.nav>ul>li').click(function () {
    localStorage.removeItem('cur')
    localStorage.removeItem('twonav')

  })
  $(document.body).height($(window).height());
  $(".nav").height($(document.body).height());
  $(window).resize(function () {
    $(document.body).height($(window).height());
    $(".nav").height($(document.body).height());
  });
  $("ul li").click(function () {
    $(this).addClass("active").siblings().removeClass("active")
  })
  $('.nav>ul>li').click(function () {
    switch ($(this).index()) {
      case 0 :
        $("#location").html("");
        $('#toogle_frame').attr('src', '../index/index.html')
        localStorage.setItem('goAdresss', '../index/index.html')
        break;
      case 1 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;会员管理</span>")
        $('#toogle_frame').attr('src', '../member/MemberManagement.html')
        localStorage.setItem('goAdresss', '../member/MemberManagement.html')
        break;
      case 2 :
        $("#location").html("");
        $('#toogle_frame').attr('src', '../announcement/announcement.html')
        localStorage.setItem('goAdresss', '../announcement/announcement.html')
        break;
      case 3 :
        $("#location").html("");
        $('#toogle_frame').attr('src', '../news/news.html')
        localStorage.setItem('goAdresss', '../news/news.html')
        break;
      case 4 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;资产统计</span>")
        $('#toogle_frame').attr('src', '../Assets/statistics.html')
        localStorage.setItem('goAdresss', '../Assets/statistics.html')
        break;
      case 5 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;资金划拨</span>")
        $('#toogle_frame').attr('src', '../management/fundTransfer.html')
        localStorage.setItem('goAdresss', '../management/fundTransfer.html')
        break;
      case 6 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>设置&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;佣金设置</span>")
        $('#toogle_frame').attr('src', '../setting/commission-install.html')
        localStorage.setItem('goAdresss', '../setting/commission-install.html')
        break;
      case 7 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>系统&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;管理员</span>")
        $('#toogle_frame').attr('src', '../system/manage.html')
        localStorage.setItem('goAdresss', '../system/manage.html')
        break;
      case 8 :
        $("#location").html("<span style='font-size: 16px;color: #666666'>业绩&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;基金盘面业绩划拨</span>")
        $('#toogle_frame').attr('src', '../performance/performanceFAllocation.html')
        localStorage.setItem('goAdresss', '../performance/performanceFAllocation.html')
        break;
    }
  })
  setInterval(function () {
    var src = localStorage.getItem('adress');
    if (src) {
      localStorage.setItem('goAdresss', src)
      $('#toogle_frame').attr('src', src);
      localStorage.removeItem('adress')
      switch(localStorage.getItem('goAdresss')){
        case "../member/MemberManagement.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;会员管理</span>")
          break;
        case "../member/mailbox.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;会员信箱</span>")
          break;
        case "../member/Upgrade.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;用户升级记录</span>")
          break;
        case "../member/Recommend.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;推荐图谱</span>")
          break;
        case "../member/commission-install.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;佣金设置</span>")
          break;
        case "../member/DealImport.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;交易额导入</span>")
          break;
        case "../member/record .html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>会员&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;交易额记录</span>")
          break;
        case "../Assets/statistics.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;资产统计</span>")
          break;
        case "../Assets/getMoney.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;收款卡号管理</span>")
          break;
          case "../Assets/usdt.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;USDT地址</span>")
          break;
        case "../Assets/System.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;系统拨比</span>")
          break;
        case "../Assets/statistics_xi.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>资产&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;资金明细</span>")
          break;
        case "../management/fundTransfer.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;资金划拨</span>")
          break;
        case "../management/dividendManagement.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;分红管理</span>")
          break;
        case "../management/deliveryManagement.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;提货管理</span>")
          break;
        case "../management/openList.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;建仓列表</span>")
          break;
        case "../management/reinvestList.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;复投列表</span>")
          break;
        case "../management/withdrawList.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;提现列表</span>")
          break;
        case "../management/rechargeList.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;充值列表</span>")
          break;
        case "../management/manualRecharge.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;手动充值</span>")
          break;
        case "../management/priceManagement.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>管理&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;RST价格管理</span>")
          break;
        case "../setting/commission-install.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>设置&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;佣金设置</span>")
          break;
        case "../setting/other-install.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>设置&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;其他设置</span>")
          break;
        case "../setting/message.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>设置&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;短信模块</span>")
          break;
        case "../setting/mail.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>设置&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;邮件模板</span>")
          break;
        case "../system/manage.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>系统&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;管理员</span>")
          break;
        case "../system/userGroup.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>系统&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;用户组</span>")
          break;
        case "../system/jurisdiction.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>系统&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;权限管理</span>")
          break;
        case "../system/backMenu.html":
          $("#location").html("<span style='font-size: 16px;color: #666666'>系统&nbsp;/</span><span style='font-size: 16px;color: black'>&nbsp;后台菜单</span>")
          break;
        default:
          $("#location").html("");
          break;
      }
    }
  }, 10)
  if(!window.name) {
    $('#toogle_frame').attr('src', '../index/index.html')
    localStorage.setItem('goAdresss', '../index/index.html')
    $(".nav li").eq(0).addClass("active").siblings().removeClass("active")
    window.name = 'test';
  }
  switch(localStorage.getItem('goAdresss')){
    case "../index/index.html":
      $(".nav li").eq(0).addClass("active").siblings().removeClass("active")
      break;
    case "../member/MemberManagement.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/mailbox.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/Upgrade.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/Recommend.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/commission-install.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/DealImport.html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../member/record .html":
      $(".nav li").eq(1).addClass("active").siblings().removeClass("active")
      break;
    case "../announcement/announcement.html":
      $(".nav li").eq(2).addClass("active").siblings().removeClass("active")
      break;
    case "../news/news.html":
      $(".nav li").eq(3).addClass("active").siblings().removeClass("active")
      break;
    case "../news/postConsult.html":
      $(".nav li").eq(3).addClass("active").siblings().removeClass("active")
      break;
    case "../Assets/statistics.html":
      $(".nav li").eq(4).addClass("active").siblings().removeClass("active")
      break;
    case "../Assets/getMoney.html":
      $(".nav li").eq(4).addClass("active").siblings().removeClass("active")
      break;
      case "../Assets/usdt.html":
      $(".nav li").eq(4).addClass("active").siblings().removeClass("active")
      break;
    case "../Assets/System.html":
      $(".nav li").eq(4).addClass("active").siblings().removeClass("active")
      break;
    case "../Assets/statistics_xi.html":
      $(".nav li").eq(4).addClass("active").siblings().removeClass("active")
      break;
    case "../management/fundTransfer.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/dividendManagement.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/deliveryManagement.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/openList.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/reinvestList.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/withdrawList.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/rechargeList.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/manualRecharge.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../management/priceManagement.html":
      $(".nav li").eq(5).addClass("active").siblings().removeClass("active")
      break;
    case "../setting/commission-install.html":
      $(".nav li").eq(6).addClass("active").siblings().removeClass("active")
      break;
    case "../setting/other-install.html":
      $(".nav li").eq(6).addClass("active").siblings().removeClass("active")
      break;
    case "../setting/message.html":
      $(".nav li").eq(6).addClass("active").siblings().removeClass("active")
      break;
    case "../setting/mail.html":
      $(".nav li").eq(6).addClass("active").siblings().removeClass("active")
      break;
    case "../system/manage.html":
      $(".nav li").eq(7).addClass("active").siblings().removeClass("active")
      break;
    case "../system/userGroup.html":
      $(".nav li").eq(7).addClass("active").siblings().removeClass("active")
      break;
    case "../system/jurisdiction.html":
      $(".nav li").eq(7).addClass("active").siblings().removeClass("active")
      break;
    case "../system/backMenu.html":
      $(".nav li").eq(7).addClass("active").siblings().removeClass("active")
      break;
    default:
      break;
  }
</script>
</body>
<div id="findPassword" style="display: none">
  <div class="ob-line">
    <span>原密码</span>
    <input type="password" placeholder="请输入...">
  </div>
  <div class="ob-line">
    <span>新密码</span>
    <input type="password" placeholder="请输入...">
  </div>
</div>
</html>